package net.wendal.luat.errdump;

import org.nutz.boot.NbApp;
import org.nutz.ioc.Ioc;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;

@IocBean(create = "init", depose = "depose")
public class MainLauncher {

    @Inject("refer:$ioc")
    protected Ioc ioc;

    public void init() {
        // NB自身初始化完成后会调用这个方法
        ioc.get(ErrDumpServer.class).start();
    }

    public void depose() {}

    public static void main(String[] args) throws Exception {
        new NbApp().run();
    }

}
